<?php


namespace App\Events;

use App\Models\Order;

/**
 * 接单事件
 * Class OrderReceive
 * @package App\Events
 */
class OrderReceive
{
    public $order;

    /**
     * OrderDelivery constructor.
     * @param Order $order
     * @throws \Exception
     */
    public function __construct(Order $order)
    {

        if (!$order) {
            exception('订单不存在');
        }
        $this->order = $order;
    }
}
